from django.db import models

# Create your models here.
class Activity(models.Model):
    '''活动模块'''
    start_time = models.DateTimeField(verbose_name='start_time')
    end_time = models.DateTimeField(verbose_name='end_time')
    address = models.CharField(max_length=64, verbose_name='address')
    sponsor = models.CharField(max_length=64, verbose_name='sponsor')
    deadline = models.DateTimeField(verbose_name='deadline')
    intro = models.TextField(verbose_name='intro')
    title = models.CharField(max_length=64, verbose_name='title')
    datail = models.TextField(verbose_name='datail')
    web_site = models.CharField(max_length=64, verbose_name='web_site')
    cover = models.CharField(max_length=64, verbose_name='cover')
    status = models.SmallIntegerField(verbose_name='status') #活动状态
    city = models.CharField(max_length=32, verbose_name='city')
    class Meta:
        db_table = 'actities'
        verbose_name = '活动'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.title